using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection.Emit;
using System.Text;
using System.Threading.Tasks;
using bitzhuwei.Compiler;

namespace bitzhuwei.AnsiCFormat {
    /// <summary>
    /// Correspond to the Vn node external_declaration in the grammar(AnsiC).
    /// </summary>
    internal abstract partial class Vnexternal_declaration : IFullFormatter {
        // [205]=external_declaration : function_definition ;
        // [206]=external_declaration : declaration ;

        public abstract TokenRange Scope { get; }

        public abstract void Format(TextWriter writer, FormatContext context);

        public abstract void FullFormat(BlankConfig preConfig, TextWriter writer, FormatContext context);

        public abstract IEnumerable<string> YieldTokens(TextWriter writer, FormatContext context);

        // [205]=external_declaration : function_definition ;
        // dumped by InheritExtractor
        // internal class Vnfunction_definition : Vnexternal_declaration {

        // }
        // [206]=external_declaration : declaration ;
        // dumped by InheritExtractor
        // internal class Vndeclaration : Vnexternal_declaration {

        // }

    }
}
